home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 for Intel / NeXTSTEP 3.2 for Intel.iso / NextLibrary / Documentation / Sybase / DBLIB / Section2 / dbcolname.nr < prev    next >
Encoding:
Text File  |  1993-04-22  |  980 b   |  40 lines

  1. .Na "dbcolname" 
  2. .Aa
  3. .Fu
  4. Return the name of a regular result column.
  5. .Ih "regular result column, returning the name of"
  6. .Sy
  7. .Sf "char *dbcolname(dbproc, column)"
  8. .Sp "DBPROCESS" "*dbproc"
  9. .Sp "int" "column"
  10. .Co
  11. .Bl
  12. This routine returns a pointer to the null-terminated name of a
  13. regular (\f2i.e.,\f1 non-compute) result column.
  14. .Bl
  15. Here's a small program fragment that uses \f2dbcolname()\fP:
  16. .ta +4n +4n +4n +4n +4n +4n
  17. .SD
  18. .so dbcolname.ex
  19. .ED
  20. .Bz
  21. .Pa
  22. .Pi dbproc
  23. A pointer to the DBPROCESS structure that provides the connection
  24. for a particular front-end/\*S process.  It contains all the
  25. information that \*L uses to manage communications and data between the
  26. front end and \*S.
  27. .Pi column
  28. The number of the column of interest.  The first column is number 1.
  29. .in -.375i
  30. .Re
  31. .br
  32. A \f2char\f1 pointer to the null-terminated name of the particular column.
  33. If the column number is not in range, \f2dbcolname()\f1 returns NULL.
  34. .Sa
  35. dbcollen,
  36. dbcoltype,
  37. dbdata,
  38. dbdatlen,
  39. dbnumcols
  40.